import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/manage'
const gateway = '/gateway/api'

//预分管理
const queryBrand = (params) => postAction(gateway + '/openapi/product/queryBrand', params) // 查询品牌
const queryProductPreAssigned = (params) => postAction(gateway + '/openapi/product/queryProductPreAssigned', params) // 查询预分表数据
const delProductPreAssigned = (params) => postAction(gateway + '/openapi/product/delProductPreAssigned', params) // 删除预分表数据
const saveProductPreAssigned = (params) => postAction(gateway + '/openapi/product/saveProductPreAssigned', params) // 保存预分表数据
const queryProductPreAssignedById = (params) => postAction(gateway + '/openapi/product/queryProductPreAssignedById', params) // 根据id查询预分数据
const queryAssignedDetailList = (params) => postAction(gateway + '/openapi/product/queryAssignedDetailList', params) // 根据预分表id查询预分详情数据
const batchUpdateAssignedDetail = (params) => postAction(gateway + '/openapi/product/batchUpdateAssignedDetail', params) // 批量修改调整数量
const delAssignedDetailById = (params) => postAction(gateway + '/openapi/product/delAssignedDetailById', params) // 根据id删除详情数据
const saveAssignedDetail = (params) => postAction(gateway + '/openapi/product/saveAssignedDetail', params) // 保存预分表明细数据
const delProductPreAssignedDetail = (params) => postAction(gateway + '/openapi/product/delProductPreAssignedDetail', params) // 删除预分表明细数据
const queryPreBand = (params) => postAction(gateway + '/openapi/product/queryPreBand', params) // 查询波段
export {
  queryBrand,
  queryProductPreAssigned,
  delProductPreAssigned,
  saveProductPreAssigned,
  queryProductPreAssignedById,
  queryAssignedDetailList,
  batchUpdateAssignedDetail,
  delAssignedDetailById,
  saveAssignedDetail,
  delProductPreAssignedDetail,
  queryPreBand
}